package com.gj.common.data;

import java.util.HashMap;
import java.util.Map;

/**
 * 公用mybatis 查询Map数据对象
* @ClassName: CommonDataMapExt 
* @Description: TODO （描述）
* @author 作者 jacking
* @date 2017年6月23日 下午3:29:36
 */
public class CommonMybaitsDataMapExt extends HashMap<String, Object> {
	/**
	 * 点位查询条件对象前缀别名
	 */
	public final static String POJO_PREFIX = "pojo.";
	/**
	 * 含where 的in查询条件
	 */
	private String inSqlByWhere;
	/**
	 * 含and 的in查询条件
	 */
	private String inSqlByAnd;
	private Map pojoMap;

	public CommonMybaitsDataMapExt() {
	}

	public CommonMybaitsDataMapExt(String inSqlByWhere, String inSqlByAnd, Map pojoMap) {
		super();
		this.inSqlByWhere = inSqlByWhere;
		this.inSqlByAnd = inSqlByAnd;
		this.pojoMap = pojoMap;
		put("inSqlByWhere", inSqlByWhere);
		put("inSqlByAnd", inSqlByAnd);
		put("pojoMap", pojoMap);
	}

	public String getInSqlByWhere() {
		return super.get("inSqlByWhere")==null?inSqlByWhere:super.get("inSqlByWhere").toString();
	}

	public void setInSqlByWhere(String inSqlByWhere) {
		this.inSqlByWhere = inSqlByWhere;
		put("inSqlByWhere", inSqlByWhere);
	}

	public String getInSqlByAnd() {
		return  super.get("inSqlByAnd")==null?inSqlByAnd:super.get("inSqlByAnd").toString();
	}

	public void setInSqlByAnd(String inSqlByAnd) {
		this.inSqlByAnd = inSqlByAnd;
		put("inSqlByAnd", inSqlByAnd);
	}

	public Map getPojoMap() {
		return (Map) (super.get("pojoMap")==null?pojoMap:super.get("pojoMap"));
	}

	public void setPojoMap(Map pojoMap) {
		this.pojoMap = pojoMap;
		put("pojoMap", pojoMap);
	}
	
	

}
